﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XSTDZ.ERP.Domain.Models
{
    /// <summary>
    /// 客户
    /// </summary>
    public partial class ClientInfo
    {
        public ClientInfo()
        {
            this.ReceivablePayableBill = new HashSet<ReceivablePayableBill>();
            this.ProductAllot = new HashSet<ProductAllot>();
            this.ProductAllot1 = new HashSet<ProductAllot>();
            this.ClientLinks = new HashSet<ClientLink>();
        }
        public ClientInfo Init()
        {
            this.Deleted = 0;
            this.CreateTime = DateTime.Now;
            return this;
        }
        /// <summary>
        /// 设置删除状态（若为删除，则置为正常，否则为删除）
        /// </summary>
        /// <returns></returns>
        public ClientInfo SetDeleteState()
        {
            this.Deleted = 1;// this.Deleted == 0 ? 1 : 0;
            return this;
        }
    }
}
